<%content_for :title do %><%= @excursion.title %> - <%= !@excursion.author.nil? ? @excursion.author.name : "" %><% end %>
<%content_for :description do %><%= t("site.meta_desc.excursion")+@excursion.title + ". " + (@excursion.description ? @excursion.description : "")  %><% end %>
<%content_for :keywords do %><%= @excursion.tag_list %><% end %>
<% shortURL = request.protocol + request.env['HTTP_HOST'].sub(/^(m|www)\./, '') + excursion_path(@excursion) %>
<%content_for :og_image do %><%= Embed.checkUrlProtocol(@excursion.thumbnail_url,request.protocol) || request.protocol + request.env['HTTP_HOST'] + "/assets/logos/original/excursion-vish.png" %><% end %>
<%content_for :canonical do%><%=polymorphic_url(@excursion, :locale => params[:locale])%><%end%>
<%content_for :alternate_urls do%><%=raw alternate_urls(polymorphic_url(@excursion), @excursion)%><%end%>

<% @contribution = (params["contribution"]=="true" and !@excursion.contribution.nil?) %>

<%=javascript_include_tag "RegaddiChart" %>
<%=javascript_include_tag "loep" %>
<%=javascript_include_tag "VISH.IframeAPI" %>

<script type="text/javascript">
  //VE extra vars
  var options = {};
  options["readHashFromParent"] = true;
</script>

<%if @contribution%>
  <%= render :partial => 'application/breadcrumb_path', :locals  => { :path => @excursion.contribution.parents_path } %>
<%end%>

<section id="show_items " class="layout_show">

  <!--recomended-->
  <%= render :partial => 'recommender/sidebar', :locals  => { :resources => @resource_suggestions } %>

  <div class="doc-show">
    <div class="box-show">
      <div class="viewerContainer">
        <div class="viewerElement"></div>
        <%= render :partial => 'excursion_show', :locals  => { :excursion => @excursion } %>
      </div>
    </div>

    <!--owner-profile-->
    <div class="description-activity">
      <div class="box_description">
        <!--tool-->
        <div class="excursion_tool">
          <%= render :partial => 'excursions/excursion-tool-tab', :locals => { :shortURL => shortURL} %>
        </div>
      </div>
      <!--activity-->
      <div class="activity-box">
        <%= render :partial => 'excursions/evaluate-activity'%>
      </div>
    </div>
  </div>
  
</section>

<%if @contribution%>
  <%= render :partial => 'contributions/contributable_activity', :locals => { :contribution => @excursion.contribution } %>
<%end%>
